<template>
  <div class="login">
    <div class="content-wrap">
      <div class="title">智能用电管理系统</div>
      <div class="login-wrap">
        <div class="title">用户登录</div>
        <div class="ipt-wrap">
          <div class="user">
            <img src="./images/user.png" alt="" />
            <el-input
              placeholder="请输入登录ID"
              size="large"
              v-model="login.username"
            ></el-input>
          </div>
          <div class="psd">
            <img src="./images/psd.png" alt="" />
            <el-input
              placeholder="请输入密码"
              size="large"
              v-model="login.password"
            ></el-input>
          </div>
          <div class="remember-psd">
            <el-checkbox
              v-model="remberPsd"
              label="记&nbsp;住&nbsp;密&nbsp;码"
              size="large"
            />
          </div>
          <el-button @click="loginEnter">登录</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { ref, reactive } from "vue";
import { useRouter } from "vue-router";
let remberPsd = ref(true);
let $router = useRouter();
let login = reactive({});
const loginEnter = () => {
  $router.push("/home");
};
</script>
<style lang="scss" scoped>
.login {
  width: 100vw;
  height: 100vh;
  background: url("./images/login.png") no-repeat;
  position: relative;
  box-sizing: border-box;
  background-size: cover;
  .content-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    top: 180px;
    .title {
      font-size: 63px;
      font-weight: 800;
      color: #ffffff;
      text-align: center;
    }
    .login-wrap {
      margin-top: 76px;
      background: url("./images/ipt-wrap.png") no-repeat;
      background-size: cover;
      width: 671px;
      height: 464px;
      .title {
        font-size: 35px;
        font-weight: 400;
        color: #00e1eb;
        text-align: center;
        padding-top: 47px;
        margin-bottom: 38px;
      }
      .ipt-wrap {
        padding: 0 62px;
        .user,
        .psd {
          display: flex;
          align-items: center;
          width: 100%;
          height: 59px;
          border: 3px solid #09669f;

          padding-left: 29px;
          background: #073e64;
        }
        .psd {
          margin-bottom: 27px;
        }
        .user {
          margin-bottom: 27px;
        }
        .remember-psd {
          margin-bottom: 29px;
          :deep(.el-checkbox.el-checkbox--large .el-checkbox__label) {
            font-size: 26px;
            font-weight: 400;
            color: #ffffff;
          }
          :deep(.el-checkbox__inner) {
            width: 24px;
            height: 24px;
            border: 3px solid #0763a0;
            /* opacity: 0.4; */
            margin-right: 13px;
            background-color: #09426a;
          }
          :deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
            background-color: #0d68c2;
          }
          :deep(.el-checkbox__inner::after) {
            width: 5px;
            height: 10px;
            margin-left: 3px;
          }
        }
        :deep(.el-button) {
          width: 100%;
          height: 59px;
          background: #4be7ff;
          font-size: 35px;
          font-weight: 400;
          color: #001a2b;
          border-radius: 0;
        }
      }
    }
  }
  :deep(.el-input__inner::placeholder) {
    font-size: 26px;

    font-weight: 400;

    color: #ffffff;
  }
  :deep(.el-input__inner) {
    font-size: 26px !important;

    font-weight: 400;

    color: #ffffff !important;
  }
  :deep(.el-input) {
    background-color: transparent !important;
  }
  :deep(.el-input__wrapper) {
    border: none !important;
  }
  :deep(.el-input__wrapper) {
    background-color: transparent !important;
    padding-left: 17px !important;
    box-shadow: none !important;
  }
}
</style>
